package pta;

import java.math.BigInteger;
import java.util.Scanner;
public class Test2 {

	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		BigInteger c= new BigInteger("0");
		while(s.hasNext()){
			String a=s.next();
			if(a.equalsIgnoreCase("e"))
			{break;}
			BigInteger b= new BigInteger(a);
			c=c.add(b);
		}
		System.out.println(c);
	}
 }
